package com.qf.smartplatform.mapper;

import com.qf.smartplatform.pojo.Role;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface RoleMapper {

    @Select("SELECT * FROM sys_role WHERE role_id =#{role_id} ")
    Role selectRoleById(Long id);

    @Select("SELECT * FROM sys_role")
    List<Role> selectAllRoles();
}
